// import './App.css'
import { Suspense, useState } from "react"
import routes from "./router/index"
import { useRoutes } from "react-router-dom"

function App() {
  const element = useRoutes(routes)
  return (
    <>
      <Suspense fallback={<div>Loading...</div>}>
        {element}
      </Suspense>
    </>
  )
}

export default App
